package com.ruoyi.oa.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.oa.mapper.OaEmployeesMapper;
import com.ruoyi.oa.domain.OaEmployees;
import com.ruoyi.oa.service.IOaEmployeesService;

/**
 * 员工功能Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-28
 */
@Service
public class OaEmployeesServiceImpl implements IOaEmployeesService 
{
    @Autowired
    private OaEmployeesMapper oaEmployeesMapper;

    /**
     * 查询员工功能
     * 
     * @param oaEmployeeId 员工功能主键
     * @return 员工功能
     */
    @Override
    public OaEmployees selectOaEmployeesByOaEmployeeId(Long oaEmployeeId)
    {
        return oaEmployeesMapper.selectOaEmployeesByOaEmployeeId(oaEmployeeId);
    }

    /**
     * 查询员工功能列表
     * 
     * @param oaEmployees 员工功能
     * @return 员工功能
     */
    @Override
    public List<OaEmployees> selectOaEmployeesList(OaEmployees oaEmployees)
    {
        return oaEmployeesMapper.selectOaEmployeesList(oaEmployees);
    }

    /**
     * 新增员工功能
     * 
     * @param oaEmployees 员工功能
     * @return 结果
     */
    @Override
    public int insertOaEmployees(OaEmployees oaEmployees)
    {
        return oaEmployeesMapper.insertOaEmployees(oaEmployees);
    }

    /**
     * 修改员工功能
     * 
     * @param oaEmployees 员工功能
     * @return 结果
     */
    @Override
    public int updateOaEmployees(OaEmployees oaEmployees)
    {
        return oaEmployeesMapper.updateOaEmployees(oaEmployees);
    }

    /**
     * 批量删除员工功能
     * 
     * @param oaEmployeeIds 需要删除的员工功能主键
     * @return 结果
     */
    @Override
    public int deleteOaEmployeesByOaEmployeeIds(Long[] oaEmployeeIds)
    {
        return oaEmployeesMapper.deleteOaEmployeesByOaEmployeeIds(oaEmployeeIds);
    }

    /**
     * 删除员工功能信息
     * 
     * @param oaEmployeeId 员工功能主键
     * @return 结果
     */
    @Override
    public int deleteOaEmployeesByOaEmployeeId(Long oaEmployeeId)
    {
        return oaEmployeesMapper.deleteOaEmployeesByOaEmployeeId(oaEmployeeId);
    }
}
